<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  

   <script>
    let week = prompt('请输入你要转化的星期')
     switch (week) {
      case '星期一':
         alert('monday')
        break;
        case '星期二':
         alert('monday')
        break;
        case '星期三':
         alert('monday')
        break;
        case '星期四':
         alert('monday')
        break;
        case '星期五':
         alert('monday')
        break;
        case '星期六':
         alert('monday')
        break;
        case '星期天':
         alert('sunday')
        break;
      default:
        alert('无能为力')
        break;
     }
   </script>
</body>
</html>